import request from '@/utils/request'

// 获取用户反馈列表 - 分页
export function getUserFeedbackPages(query) {
    return request({
        url: '/oms/userFeedback/queryUserFeedbackPage',
        method: 'get',
        params: query
    })
}

// 获取用户反馈数量统计信息
export function getUserFeedbackCount(query) {
    return request({
        url: '/oms/userFeedback/queryUserFeedbackCount',
        method: 'get',
        params: query
    })
}

// 提交问题反馈
export function submitQuestion(data) {
    return request({
        url: '/oms/userFeedback/newUserFeedback',
        method: 'post',
        data: data
    })
}

// 回复反馈
export function replyUserFeedback(data) {
    return request({
        url: '/oms/userFeedback/updateUserFeedback',
        method: 'put',
        data: data
    })
}

// 获取系统模块树 - 通过系统关键字
export function getMenuTreeBySysName(query) {
    return request({
        url: '/system/menu/getMenus',
        method: 'get',
        params: query
    })
}
